package com.kjsdfgk.hjmdsf.myphoto.mvp.ui.activity;

import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kjsdfgk.hjmdsf.app.entity.WebPhoto;
import com.lksdkjs.live.R;

public class MyPhotoAdapter extends BaseQuickAdapter<WebPhoto, BaseViewHolder> {
    public MyPhotoAdapter(int layoutResId) {
        super(layoutResId);
    }
    @Override
    protected void convert(BaseViewHolder helper, WebPhoto item) {

        ImageView simpleDraweeView = helper.getView(R.id.web_img);

        Glide.with(helper.itemView).load(item.url).transition(new DrawableTransitionOptions().crossFade(300)).into(simpleDraweeView);


    }
}
